import React from 'react'
import {Wrapper} from './style'
import {NavBar} from 'antd-mobile'
import {useNavigate, o} from 'react-router-dom' 
console.log('....')

export default function HomeDetail() {
    const navigate = useNavigate()
  return (
   <Wrapper>
    {/* 路由出栈需求 */}
    <div className="detail-top">
        <NavBar
            // className="detail-left"
            // onLeftClick={()=>navigate(-1)}
            // icon={<Icon type ="left"/>}  旧版本
            back='返回'
            onBack={()=>navigate(-1)}
        >
            详情
        </NavBar>
    </div>
   </Wrapper>
  )
}
